package com.java.yz.day02;

import java.util.Scanner;

/*
    输入两个数，并求和
 */
public class ScannerTest1 {
    public static void main(String[] args) {
        System.out.println("请输入两个整数：");
        Scanner sc =new Scanner(System.in);
        int num1 = sc.nextInt();
        int num2 = sc.nextInt();
        System.out.print("第一个数："+num1);
        System.out.println("第二个数："+num2);
        System.out.println("最后相加结果为："+(num1+num2));
    }
}
